<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/7/10/010
  Time: 11:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>地图</title>
    <script src="../js/jquery-3.1.1.min.js"></script>
   <%-- <script src="http://api.map.baidu.com/api?v=1.4"></script>--%>
  </head>
  </head>
  <body>
    <div id="map" style="width: 1500px; height: 1000px"></div>
  </body>

  <script type="text/javascript">
      function initialize() {
          var mp = new BMap.Map('map');
          mp.centerAndZoom(new BMap.Point(121.2134, 31.0576), 15);
      }

      function loadScript() {
          var script = document.createElement("script");
          script.src = "http://api.map.baidu.com/api?v=1.4&callback=initialize";
          document.body.appendChild(script);
      }

      window.onload = loadScript;
  </script>
</html>
